package com.ruoyi;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringBootConfiguration;

@SpringBootConfiguration
public class PrintAddressRunner implements CommandLineRunner {
    @Value("${server.port}")
    private String port;

    @Override
    public void run(String... args) throws Exception {
        System.out.println("host: http://localhost:" + port);
        System.out.println("swagger: http://localhost:" + port + "/swagger-ui/index.html");
    }
}